package com.qf.commerce.mapper;

import com.qf.commerce.entity.Channel;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author Administrator
 */
public interface ChannelMapper {


    List<Channel> selectChannelList();

    List<Channel> selectChannelListByBeans(@Param("channel") Channel channel);

    int insertChannel(@Param("channel") Channel channel);

    int updateChannel(@Param("channel") Channel channel);

    int switchChannel(@Param("channelId") Long channelId);

    int deleteChannelById(@Param("channelId") Long channelId);

    int deleteChannelByIds(@Param("channelIds") List<Long> channelIds);

    Channel selectChannelByName(@Param("channelName") String channelName);


    int changeArticleCount(@Param("channelName") String channelName,@Param("articleCount")int articleCount);



}
